<?php 
    $config = get_cache('configurations_' .  get_language());
    if(!empty($config)){
//        $facebook_url = !empty($config['facebook_id'])?'https://www.facebook.com/'.$config['facebook_id']:'#';
        $slogan = !empty($config['slogan'])?$config['slogan']:'';//__('IP_default_slogan')
    }
?>
<div class="top_main">
    <div class="container">
        <div class="row">
            <div class="col-sm-4 top_hotline">
                <?php $supports = modules::run('supports/get_supports',array('tel'=>TRUE,'onehit'=>TRUE)); ?>
                <?php if(!empty($supports)){ ?>
                <a class="top_support"><i class="fa fa-phone"></i>
                <?php echo $supports->content; ?>
                </a>
                <?php } ?>
                <a class="top_support" href="mailto:<?php echo CONTACT_EMAIL; ?>" title="EMAIL"><i class="fa fa-envelope"></i><?php echo CONTACT_EMAIL; ?></a>
<!--                <a href="<?php // echo $facebook_url; ?>" target="_blank" title="FACEBOOK"><i class="fa fa-facebook"></i></a>
                <a href="#" target="_blank" title="GOOGLE+"><i class="fa fa-google-plus"></i></a>-->
            </div>
            <div class="col-sm-4 top_slogan">
                <span><?php echo $slogan; ?></span>
            </div>
            <div class="col-sm-4 top_search">
                <div id="google_translate_element" class="google-language-bar"></div>
                <div class="top_lang">
                    <a href="<?php echo base_url(); ?>" title="Tiếng việt"><img src="<?php echo base_url().'images/flag-vietnam.png'; ?>" title="Tiếng việt" alt="Tiếng việt" /></a>
                    <a href="<?php echo base_url().'en'; ?>" title="English"><img src="<?php echo base_url().'images/flag-uk.png'; ?>" title="English" alt="English" /></a>
                </div>
                <form class="searchform" method="post" roll="form" action="<?php echo get_form_submit_by_lang(get_language(),'search_form'); ?>">
                    <input type="text" class="searchinput" placeholder="<?php echo __('IP_search'); ?>" name="keyword" value="" title="<?php echo __('IP_search_input_title'); ?>">
                    <input type="submit" class="searchsubmit" value="<?php echo __('IP_search'); ?>" title="<?php echo __('IP_search'); ?>">
                </form>
            </div>
        </div>
    </div>
</div>